package com.rykj.energy.database.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.rykj.energy.database.pojo.Organization;
import com.rykj.energy.database.pojo.vo.OrgMemberVo;
import com.rykj.energy.database.pojo.vo.OrganizationVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrganizationMapper extends BaseMapper<Organization> {

    List<OrganizationVO> listVO(@Param("orgIds") List<Integer> orgIds,@Param("searchName") String searchName);

    List<Integer> getChildOrgIdsById(@Param("orgId")Integer orgId);

    List<OrgMemberVo> getListByOrgId(@Param("keyWord") String keyWord,@Param("orgIdList") List<Integer> orgIdList);
}
